#ifndef _PARTHUS_LMP_ENCODE_PDU_
#define _PARTHUS_LMP_ENCODE_PDU_

/******************************************************************************
 * MODULE NAME:    lmp_encode_pdu.h
 * PROJECT CODE:    BlueStream
 * DESCRIPTION:
 * MAINTAINER:     Gary Fleming
 * CREATION DATE:
 *
 * LICENSE:
 *     This source code is copyright (c) 2000-2004 Ceva Inc.
 *     All rights reserved.
 *
 * REVISION HISTORY:
 *
 ******************************************************************************/

#include "lmp_acl_connection.h"

t_error LM_Encode_LMP_PDU(
    t_deviceIndex device_index, t_lmp_pdu_info* pdu_info);

void LM_Encode_Msg_Timeout(t_lmp_link* p_link);

void LM_Encode_LMP_Accepted_PDU(
    t_lmp_link *p_link, u_int8 opcode);
void LM_Encode_LMP_Not_Accepted_PDU(
    t_lmp_link *p_link, u_int8 opcode, t_error reason);

void LM_Encode_LMP_Accepted_Ext_PDU(
    t_lmp_link *p_link, u_int16 opcode);
void LM_Encode_LMP_Not_Accepted_Ext_PDU(
    t_lmp_link *p_link, u_int16 opcode, t_error reason);

#if (PRH_BS_CFG_SYS_LMP_ENCAPSULATED_PDU_SUPPORTED == 1)
void LM_Encode_Encapsulated_PDU(t_lmp_link *p_link, u_int8 major_type, u_int8 minor_type,
            u_int8 length, u_int8 *data, u_int8 tid_role);
void LM_Encode_Encapsulated_Payload(t_lmp_link *p_link);


#endif

#endif

